<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:sec="http://www.springframework.org/security/facelets/tags"
                xmlns:spring="http://www.springframework.org/tags"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
				template="/WEB-INF/layouts/template.xhtml">

<ui:define name="main">
<div id="main">
	<div id="wrapper" class="yui-b">
		<h3 class="title">${msg.title_member_review} ${member.contact.name}</h3>
		<div id="mainContent">
			<h:form id="client" >
				<a4j:mediaOutput element="img" createContent="${imageBean.paintMember}" value="${member.photo}" cacheable="false" mimeType="${imageFileUpload.mimeType}" styleClass="userimage" />
				<br/>
				<br/>
				<h:panelGroup rendered="${!(empty member.position)}">
					<div class="field">
						<div class="label">${msg.position}</div>
						<div class="output">${member.position}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty member.contact.email)}">
					<div class="field">
						<div class="label">${msg.email}</div>
						<div class="output">${member.contact.email}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty member.contact.mobile)}">
					<div class="field">
						<div class="label">${msg.mobile}</div>
						<div class="output">${member.contact.mobile}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty member.contact.phone)}">
					<div class="field">
						<div class="label">${msg.phone}</div>
						<div class="output">${member.contact.phone}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty member.contact.fax)}">
					<div class="field">
						<div class="label">${msg.fax}</div>
						<div class="output">${member.contact.fax}</div>
					</div>
				</h:panelGroup>
				<div>
					<sf:commandLink id="edit" action="edit"><div class="button">${msg.edit}</div></sf:commandLink>
					<sf:commandLink id="changePhoto" action="changePhoto"><div class="button">${msg.changephoto}</div></sf:commandLink>
				</div>
			</h:form>
		</div>
	</div>
</div>
</ui:define>
</ui:composition>